﻿<%@ Page Language="C#" MasterPageFile="~/WebSite/teacher.master" AutoEventWireup="true" CodeFile="t_data_relevance.aspx.cs" Inherits="WebSite_t_data_relevance" Title="关联性分析" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<style type="text/css">
    .RelevanceStyle
    {
         margin-left:50px;
   	}
   	.RelevanceResultStyle
   	{
        margin:5px auto;		
   	}
   	.BtnStyle
    {
    	margin:5px 200px;
    	width:90px;
    	height:30px;
    	background-color:#669DF0;
    	font-size:16px;
    	font-weight:bold;
    	color:#FFFFFF;
    }
    .TableStyle
    {
        font-size:16px;
        color:Black;
        border:solid 1px blue;
        border-collapse:collapse;	
    }
    .AllTable
    {
        border:solid 2px blue;
        border-collapse:collapse;
        margin-left:20px;
        width:500px;
   	}
</style>
    <p>
    <br />
    <b>
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;选择要进行关联性测试的对象</b></p>
      <br/>
      <div class="RelevanceStyle">
    <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最小支持度:&nbsp;
        <asp:TextBox  ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最小置信度:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </p>
    <p style="height: 31px">
    <br/>
        &nbsp;&nbsp;&nbsp;测试结果范围：
    <br/>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下限:<asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上限:<asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
    </p>
    <br/>
    <p style="height: 38px">
        <br />
    &nbsp;&nbsp;&nbsp;&nbsp;年级:
        <asp:DropDownList ID="DropDownListcon_year1" runat="server">
            <asp:ListItem Value=1>全部年级</asp:ListItem>
            <asp:ListItem Value=2>2006</asp:ListItem>
            <asp:ListItem Value=3>2007</asp:ListItem>
            <asp:ListItem Value=4>2008</asp:ListItem>
            <asp:ListItem Value=5>2009</asp:ListItem>
        </asp:DropDownList>
        学院: 
        <asp:DropDownList ID="DropDownList_con_major1" runat="server" DataSourceID="XmlDataSource1" DataTextField="College" 
                            DataValueField="id" Width="95px">
        </asp:DropDownList>        
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" 
            DataFile="~/WebSite/CollegeName.xml" TransformFile="~/WebSite/CollegeName.xslt">
        </asp:XmlDataSource>
        项目:<asp:DropDownList ID="DropDownList_item1" runat="server" DataSourceID="XmlDataSource3" DataTextField="Test" 
                            DataValueField="id" Width="95px">
        </asp:DropDownList>
        <asp:XmlDataSource ID="XmlDataSource3" runat="server" 
            DataFile="~/WebSite/TestItems.xml" TransformFile="~/WebSite/TestItems.xslt">
        </asp:XmlDataSource>
        性别:<asp:DropDownList ID="DropDownList1" runat="server">
                <asp:ListItem Value=1>全部</asp:ListItem>
                <asp:ListItem Value=2>男</asp:ListItem>
                <asp:ListItem Value=3>女</asp:ListItem>
            </asp:DropDownList>
        <br />
    &nbsp;&nbsp;&nbsp;</p>
    
    <br/>
    <p><b>关联项目</b></p>
    <p style="height: 31px">
    <br/>
        &nbsp;&nbsp;&nbsp;测试结果范围：
    <br/>  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下限:<asp:TextBox ID="TextBox7" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上限:<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
    </p>
    <br/>
    <p style="height: 38px">
        <br />
    &nbsp;&nbsp;&nbsp;&nbsp;年级:
        <asp:DropDownList ID="DropDownList2" runat="server">
            <asp:ListItem Value=1>全部年级</asp:ListItem>
            <asp:ListItem Value=2>2006</asp:ListItem>
            <asp:ListItem Value=3>2007</asp:ListItem>
            <asp:ListItem Value=4>2008</asp:ListItem>
            <asp:ListItem Value=5>2009</asp:ListItem>
        </asp:DropDownList>
        学院: 
        <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="XmlDataSource1" DataTextField="College" 
                            DataValueField="id" Width="95px">
        </asp:DropDownList>        
        <asp:XmlDataSource ID="XmlDataSource2" runat="server" 
            DataFile="~/WebSite/CollegeName.xml" TransformFile="~/WebSite/CollegeName.xslt">
        </asp:XmlDataSource>
        项目:<asp:DropDownList ID="DropDownList4" runat="server" DataSourceID="XmlDataSource3" DataTextField="Test" 
                            DataValueField="id" Width="95px">
        </asp:DropDownList>
        <asp:XmlDataSource ID="XmlDataSource4" runat="server" 
            DataFile="~/WebSite/TestItems.xml" TransformFile="~/WebSite/TestItems.xslt">
        </asp:XmlDataSource>
        性别:<asp:DropDownList ID="DropDownList5" runat="server">
                <asp:ListItem Value=1>全部</asp:ListItem>
                <asp:ListItem Value=2>男</asp:ListItem>
                <asp:ListItem Value=3>女</asp:ListItem>
            </asp:DropDownList>
        <br />
    &nbsp;&nbsp;&nbsp;</p>
    <br/><b>关联性运算结果</b>
     <div class="RelevanceResultStyle">
        <table class="AllTable">
            <tr >
                <td class="TableStyle" style="width:160px;">总人数</td>
                <td class="TableStyle">
                    <asp:Label ID="TotalNumLabel" runat="server"  Text="总人数" />
                </td>
            </tr>
            <tr>
                <td class="TableStyle">满足条件一的人数</td>
                <td class="TableStyle">
                    <asp:Label ID="Label1" runat="server"  Text="满足条件一人数" />
                </td>
            </tr>

            <tr >
               <td class="TableStyle">同时满足条件一二人数</td>
                <td class="TableStyle">
                    <asp:Label ID="Label2" runat="server"  Text="同时满足人数" />
                </td>
            </tr>
            <tr >
                <td class="TableStyle">是否满足最小支持度</td>
                <td class="TableStyle">
                    <asp:Label ID="Label3" runat="server"  Text="是/否" />
                </td>
            </tr>
            <tr >
                <td class="TableStyle">是否满足最小置信度</td>
                <td class="TableStyle">
                    <asp:Label ID="Label4" runat="server"  Text="是/否" />
                </td>
            </tr>

            <tr >
                <td class="TableStyle">结论</td>
                <td class="TableStyle">
                    <asp:Label ID="Label5" runat="server" Text="不满足/满足您设定的条件" />
                </td>
            </tr>
        </table>
    </div>
         <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1" 
            ErrorMessage="最小支持度只能是0—1之间的浮点数" MaximumValue="1" MinimumValue="0" Type="Double"></asp:RangeValidator>
         <br/>
         <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="TextBox2" 
            ErrorMessage="最小置信度只能是0—1之间的浮点数" MaximumValue="1" MinimumValue="0" Type="Double"></asp:RangeValidator>
        <asp:Button ID="RelevanceBtn" runat="server" Text="开始关联" CssClass="BtnStyle" 
              onclick="RelevanceBtn_Click"/>
    </div>
</asp:Content>

